package com.spc.car.data.service.project.impl;

import com.spc.car.data.entity.project.ProjectDoc;
import com.spc.car.data.mapper.project.ProjectDocMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.spc.car.data.service.project.ProjectDocService;
import org.springframework.stereotype.Service;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 项目文档 服务实现类
 * </p>
 *
 * @author 
 * @since 2020-04-03
 */
@Service
public class ProjectDocServiceImpl extends ServiceImpl<ProjectDocMapper, ProjectDoc> implements ProjectDocService {

    @Override
    public boolean tombstoning(@NotNull Long docId) {

        return updateById(new ProjectDoc().setId(docId).setStatus("C"));
    }
}
